﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Web.admin.UserClass.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>    
    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../js/function.js" type="text/javascript"></script>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img alt="" src="../../images/main_hl.gif" /></td>
                        <td ><img alt="" src="../../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>用户类型列表</span></td>
                        <td><img alt="" src="../../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>
     <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation"><span>首页&gt;系统管理&gt;权限管理&gt;用户列表</span></div>
            <div class="tools_box">
                <div class="tools_bar">
                    <a href="edit.aspx"  class="tools_btn"><span><b class="add">添加用户</b></span></a>
                   <%-- <a href="../Privileges.aspx?RoleId=<%#Eval("ROL_ID") %>"  class="tools_btn"><span><b class="perms">权限管理</b></span></a>--%>
                    <%--<a href="#"  class="tools_btn" onclick="checkAll(this);"><span><b class="checkAll">全选</b></span></a>--%>
                </div>
            </div>
                <div class="content_table">
                        <table class="msgtable" >
                            <asp:Repeater ID="RpList" runat="server" OnItemCommand="Rp_Event">
                                <HeaderTemplate>
                                    <tr>
                                        <th>角色名称</th>
                                        <th>类型</th>
                                        <th>操作</th>
                                    </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <%#Eval("ROL_NAME")%> 
                                            <asp:HiddenField ID="role_id" runat="server" Value='<%#Eval("ROL_ID") %>' />
                                        </td>
                                        <td><%#Eval("ROL_TYPE").ToString().Trim() == "0" ?"系统用户":"非系统用户" %></td>
                                        <td>
                                            <a href="edit.aspx?id=<%#Eval("ROL_ID") %>&OPERATION=Modify">修改</a>|
                                            <a href='../Privileges.aspx?RoleId=<%#Eval("ROL_ID") %>'>权限管理</a>|
                                            <asp:LinkButton runat="server" CommandName="del_user" ID="del_user">删除</asp:LinkButton>
                                        </td>
                                     </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                </div>
        </div>
     </div>
    </form>
</body>
</html>
